package cn.terminus.client.customer.contractfile.service;

import java.util.Date;

import cn.terminus.client.customer.contractfile.param.ContractFileNewParam;
import cn.terminus.client.customer.contractfile.param.ContractFileEditParam;
import cn.terminus.client.customer.contractfile.param.ContractFileQueryParam;
import cn.terminus.client.customer.contractfile.param.ContractFileDeleteParam;
import cn.terminus.client.customer.contractfile.param.ContractFileGetsParam;
import cn.terminus.client.customer.contractfile.result.ContractFileResult;

import cn.terminus.result.common.result.TerminusResult;
import cn.terminus.result.common.page.TerminusPageAble;
import cn.terminus.result.common.page.TerminusPageInfo;
import cn.terminus.result.common.exception.DataAccessException;
import cn.terminus.result.common.exception.ServiceException;
import cn.terminus.result.common.context.TerminusCallContext;

import java.util.List;

/**
 * (ContractFile)表服务接口
 *
 * @author makejava
 * @since 2021-07-21 11:01:00
 */
public interface ContractFileService {

    /**
     * 新增
     *
     * @param param
     * @param context
     * @return
     * @throws ServiceException
     */
    TerminusResult<String> add(ContractFileNewParam param, TerminusCallContext context) throws ServiceException;

    /**
     * 更新
     *
     * @param param
     * @param context
     * @return
     * @throws ServiceException
     */
    TerminusResult<Boolean> update(ContractFileEditParam param, TerminusCallContext context) throws ServiceException;


    /**
     * gets
     *
     * @param param
     * @param context
     * @return
     * @throws ServiceException
     */
    TerminusResult<List<ContractFileResult>> gets(ContractFileGetsParam param, TerminusCallContext context) throws ServiceException;

    /**
     * 删除
     *
     * @param param
     * @param context
     * @return
     * @throws ServiceException
     */
    TerminusResult<Boolean> delete(ContractFileDeleteParam param, TerminusCallContext context) throws ServiceException;

    /**
     * 查询
     *
     * @param param
     * @param context
     * @return
     * @throws ServiceException
     */
    TerminusResult<List<ContractFileResult>> query(ContractFileQueryParam param, TerminusCallContext context) throws ServiceException;

    /**
     * 分页查询
     *
     * @param param
     * @param page
     * @param context
     * @return
     * @throws ServiceException
     */
    TerminusResult<TerminusPageAble<ContractFileResult>> page(ContractFileQueryParam param, TerminusPageInfo page, TerminusCallContext context) throws ServiceException;
}
